//
//  AppDelegate.swift
//  SineWeibo
//
//  Created by keshuaiguo on 16/1/14.
//  Copyright © 2016年 keshuaiguo. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

        //实例化window
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        
        //设置背景颜色
        window?.backgroundColor = UIColor.yellowColor()

        //设置根控制器
        window?.rootViewController = MainViewController()
        
        //可视化
        window?.makeKeyAndVisible()
        return true
    }

   
}

